#include<bits/stdc++.h>
using namespace std;
class Complex
{
    private:
        float real,image;
    public:
        Complex(float a=0,float b=0)
        {
            real=a;
            image=b;
        }
        friend Complex operator+(Complex& a,Complex& b)
        {
            Complex ans;
            ans.real=a.real+b.real;
            ans.image=a.image+b.image;
            return ans;
        }
        friend Complex operator-(Complex& a,Complex& b)
        {
            Complex ans;
            ans.real=a.real-b.real;
            ans.image=a.image-b.image;
            return ans;
        }
        friend Complex operator*(Complex& a,Complex& b)
        {
            Complex ans;
            ans.real=a.real*b.real-a.image*b.image;
            ans.image=a.image*b.real+b.image*a.real;
            return ans;
        }
        void show()
        {
            cout<<"Real="<<real<<" "<<"Image="<<image<<endl;
        }
};
int main()
{
    float a,b,c,d;
    cin>>a>>b>>c>>d;
    Complex a1(a,b),a2(c,d);
    (a1+a2).show();
    (a1-a2).show();
    (a1*a2).show();
}